function [ average, count ] = RecursiveAverage( input,average,count )
% recursive average filter
    count=count+1;
    if count==1
       average=input;
    else
       a=1-1/count;
       average=a*average+(1-a)*input;
    end
    
end

